package course.experiment2.num4;

public class Test04 {
    public static void main(String[] args) {
        Employee employee = new Employee("张","男",18,13000000);
        System.out.println("这是一名员工：");
        System.out.println("姓名："+employee.name);
        System.out.println("性别："+employee.sex);
        System.out.println("年龄："+employee.age);
        System.out.println("工号："+employee.EmpNo);
        employee.eat();
        employee.speak();
        employee.work();
        System.out.println();
        People people = new People("丽丝","女",16);
        System.out.println("这是一个普通的人：");
        System.out.println("姓名："+people.name);
        System.out.println("性别："+people.sex);
        System.out.println("年龄："+people.age);
        people.eat();
        people.speak();
    }
}
